package vlasovserg.tennis.entities;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;

@Entity
@Getter
@Setter
@Table(schema = "public", name = "match")
public class Match {
    @Id
    @GeneratedValue (strategy = GenerationType.IDENTITY)
    private Integer match_id;

    @Column(name = "player1", nullable = false, length = 100)
    private String player1;

    @Column(name = "player2", nullable = false, length = 100)
    private String player2;
}
